#ifndef __MOD_DATA_H__
#define __MOD_DATA_H__

#define BIT 1
#define BITADDR 30001
#define REGISTER 40001
#define RECV_MSG 1
#define SEND_MSG 2
#define MAX_BUF_SIZE 1024
#define MAX_NODES 10
#define  MAX_NAME_LENGTH 20
#define IPC_WAIT 0
#define PORT 502
#define MODBUSIP "192.168.31.7"
enum
{
    FAN_ID = 301,
    DOOR_ID,
    INFRARED_ID,
    BEEP_ID,
    CO2_ID,
    H2O_ID
};

struct msgvalue
{
    long type;
    int key;
    bool status;
};
#endif